autocleanups: allow g_autoptr() usage with GtkTreePath
authorChristian Hergert <chergert@redhat.com>
Tue, 5 Dec 2017 03:22:40 +0000 (19:22 -0800)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 5 Dec 2017 12:33:50 +0000 (12:33 +0000)
As the summary says, this allows using g_autoptr(GtkTreePath). This is
useful for API that uses out parameters for GtkTreePath that need to be
freed.

https://bugzilla.gnome.org/show_bug.cgi?id=791234

gtk/gtk-autocleanups.h

index 75abbaaa5805a6f791d2f36b7922705556c21df8..cc8b88b3cdb21cfcd44fa7a9ea9103f784ec7152 100644 (file)
@@ -191,6 +191,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPaperSize, gtk_paper_size_free)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkSelectionData, gtk_selection_data_free)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTextIter, gtk_text_iter_free)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTreeIter, gtk_tree_iter_free)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTreePath, gtk_tree_path_free)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTreeRowReference, gtk_tree_row_reference_free)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWidgetPath, gtk_widget_path_unref)